package com.bazinga.contact.view;


import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class EmployerHomeAction extends ActionSupport implements SessionAware {
	private static final long serialVersionUID = 1L;
	private Map<String, Object> session;

	public void setSession(Map<String, Object> session) {
		this.session = session;
	}
	/**
     * @see HttpServlet#HttpServlet()
     */
	
	public String execute() {
		this.session = ActionContext.getContext().getSession();
		if(session.containsKey("logged-in")) {
			return "success";
		}
		return "login";
	}
    public EmployerHomeAction() {
        super();
        // TODO Auto-generated constructor stub
    }

}
